"use strict";
cc._RF.push(module, 'b482fBK55NKGYiQ2a8u9t1i', 'SkinItem');
// scripts/SkinItem.js

"use strict";

var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", {
  value: !0
});

var o = e("SkinView"),
    i = cc._decorator,
    a = i.ccclass,
    r = i.property,
    s = function (e) {
  __extends(t, e);

  function t() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.sprite = null;
    t.lockNode = null;
    t.id = 0;
    return t;
  }

  t.prototype.setState = function (e, t) {
    this.id = e;
    this.sprite.node.active = t;
    this.lockNode.active = !t;
  };

  t.prototype.btnClick = function () {
    o["default"].Instance.skinClick(this.id);
  };

  __decorate([r(cc.Sprite)], t.prototype, "sprite", void 0);

  __decorate([r(cc.Node)], t.prototype, "lockNode", void 0);

  return __decorate([a], t);
}(cc.Component);

n["default"] = s;

cc._RF.pop();